#include"List.h"

void TextListNode1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	Print(plist);
	LTPopBack(plist);
	Print(plist);

}

void TextListNode2()
{
	LTNode* plist = LTInit();
	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);

	Print(plist);
	LTPopFront(plist);
	Print(plist);
}

void TextListNode3()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);

	Print(plist);

	LTNode* pos = LTFind(plist, 3);
	LTInsert(pos,5);
	Print(plist);
	LTErase(pos);
	Print(plist);
	LTDestroy(plist);
	plist = NULL;
}

int main()
{
	TextListNode3();
	return 0;
}